package com.haiya.builder.basic.builder;

import com.haiya.builder.basic.product.Product;

public abstract class Builder {
    protected Product product = new Product();

    /**
     * 构建产品的partA
     */
    public abstract void buildPartA();

    /**
     * 构建产品的partB
     */
    public abstract void buildPartB();

    /**
     * 构建产品的partC
     */
    public abstract void buildPartC();

    public Product getResult() {
        return product;
    }
}
